<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "crm_fp_history".
 *
 * @property int $id
 * @property int $fprid 分配人id
 * @property string $cjfpsj 创建分配时间
 * @property string $xgfpsj 修改分配时间
 * @property string $bz 备注
 */
class CrmFpHistory extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'crm_fp_history';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id'], 'required'],
            [['id', 'fprid'], 'integer'],
            [['cjfpsj', 'xgfpsj'], 'string', 'max' => 12],
            [['bz'], 'string', 'max' => 255],
            [['id'], 'unique'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'fprid' => '分配人id',
            'cjfpsj' => '创建分配时间',
            'xgfpsj' => '修改分配时间',
            'bz' => '备注',
        ];
    }
}
